import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EMapPointType
    
    export  class EMapPointType
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public static convert(arg1: int): EMapPointType
        {
            return new EMapPointType(arg1);
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static __read(arg1: SerializeStream): EMapPointType
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 124) 
            {
                throw new MarshalException();
            }
            return EMapPointType.convert(loc1);
        }

        public static /* const */_EMapPointTypeBlack: int=0;

        public static /* const */_EMapPointTypeCanFly: int=1;

        public static /* const */_EMapPointTypeCanAttack: int=2;

        public static /* const */_EMapPointTypeServerWork: int=4;

        public static /* const */_EMapPointTypeWork: int=5;

        public static /* const */_EMapPointTypeTransparent: int=6;

        public static /* const */_EMapPointTypeSafe: int=7;

        public static /* const */_EMapPointTypeBusiness: int=8;

        public static /* const */_EMapPointTypeRelive1: int=9;

        public static /* const */_EMapPointTypeRelive2: int=10;

        public static /* const */_EMapPointTypeRelive3: int=11;

        public static /* const */_EMapPointTypeRelivePublic: int=12;

        public static /* const */_EMapPointTypeZazen: int=13;

        public static /* const */_EMapPointTypeFish: int=14;

        public static /* const */_EMapPointTypeReliveEx3: int=17;

        public static /* const */_EMapPointTypeReliveExPublic: int=18;

        public static /* const */_EMapPointTypeRelivePublic2: int=19;

        public static /* const */_EMapPointTypeBoss: int=20;

        public static /* const */_EMapPointTypeRobCity1: int=113;

        public static /* const */_EMapPointTypeRobCity2: int=114;

        public static /* const */_EMapPointTypeRobCity3: int=115;

        public static /* const */_EMapPointTypeRobCity4: int=116;

        public static /* const */_EMapPointTypeRobCity5: int=117;

        public static /* const */_EMapPointTypeRobCity6: int=118;

        public static /* const */_EMapPointTypeLifeSpring: int=119;

        public static /* const */_EMapPointTypeBuildTower: int=120;

        public static /* const */_EMapPointTypeCrossCountry1: int=121;

        public static /* const */_EMapPointTypeCrossCountry2: int=122;

        public static /* const */_EMapPointTypeCrossCountry3: int=123;

        public static /* const */_EMapPointTypeReliveEx2: int=16;

        public static /* const */_EMapPointTypeReliveEx1: int=15;

        public /* var */__value: int;
    }
